package com.whmall.service.crm.provider;

import com.whmall.component.entity.dto.PageReqDTO;
import com.whmall.component.entity.dto.PageRspDTO;
import com.whmall.service.crm.api.CompanyAndUserApproveApi;
import com.whmall.service.crm.entity.dto.company.CompanyAndUserApproveKeyFieldRspDTO;
import com.whmall.service.crm.entity.dto.company.CompanyAndUserApproveListReqDTO;
import com.whmall.service.crm.entity.dto.company.CompanyAndUserApproveListRspDTO;
import com.whmall.service.crm.module.company.service.CompanyAndUserApproveService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service(interfaceClass = CompanyAndUserApproveApi.class)
public class CompanyAndUserApproveProvider implements CompanyAndUserApproveApi {

    @Autowired
    private CompanyAndUserApproveService companyAndUserApproveService;

    @Override
    public PageRspDTO<CompanyAndUserApproveListRspDTO> list(PageReqDTO pageReqDTO, CompanyAndUserApproveListReqDTO reqDTO) {
        return companyAndUserApproveService.list(pageReqDTO, reqDTO);
    }

    @Override
    public Map<Long, CompanyAndUserApproveKeyFieldRspDTO> selectByIds(List<Long> ids) {
        return companyAndUserApproveService.selectByIds(ids);
    }

    @Override
    public List<Map<String, Object>> getCountByVerifyId(Long verifyId) {
        return companyAndUserApproveService.getCountByVerifyId(verifyId);
    }

}
